package com.zhonghui.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author: FL
 * @create: 2024 2024/5/3 14:56
 */
@Data
@Builder
public class Product {
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "创建人id")
    private Long createUser;
    @ApiModelProperty(value = "修改人id")
    private Long updateUser;
    @ApiModelProperty(value = "商品分类id")
    private Long categoryId;
    @ApiModelProperty(value = "活动id")
    private Long activityId;
    @ApiModelProperty(value = "状态 1启用 0 禁用")
    private Boolean status;
    @ApiModelProperty(value = "商品标题")
    private String name;
    @ApiModelProperty(value = "商品副标题")
    private String subTitle;
    @ApiModelProperty(value = "商品主图")
    private String mainImage;
    @ApiModelProperty(value = "商品副图")
    private String subImages;
    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;
    @ApiModelProperty(value = "商品库存")
    private Integer stock;
    @ApiModelProperty(value = "删除标记(1 删除 0未删除)")
    private Integer deleteFlag;
    @ApiModelProperty(value = "热度标识")
    private Boolean hotFlag;
}
